package com.qf.common.core.utils;

/**
 * Author hehecheng
 * Date 2024/10/30
 * 祝我们都能遇见真诚的人
 * 见字如面
 */
public class UserUtils {

    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void setUid(Integer uid) {
        threadLocal.set(uid);
    }

    public static Integer getUid() {
        return threadLocal.get();
    }

    public static void removeUid() {
        threadLocal.remove();
    }

}
